<template>
  <div class="layout">
    <div class="main flex flex-col justify-center items-center">
      <svg-icon class="icon-404-wrapper" icon-class="404" />
      <p class="err-text font-18">非常抱歉，您访问的页面不存在</p>
      <el-button type="primary" @click="backIndex" plain>返 回</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';
const router = useRouter();
const backIndex = () => {
  router.go(-1);
};
</script>

<style lang="scss" scoped>
.layout {
  .main {
    width: 526px;
    padding-top: 140px;
    margin: 0 auto;
    text-align: center;

    .icon-404-wrapper {
      font-size: 300px;
    }

    .err-text {
      margin-top: -40px;
      margin-bottom: 20px;
    }
  }
}
</style>
